import { Base } from '../../utils/base.js';

class Ycwenda extends Base {
  constructor() {
    super();
  }

  getAnswers(aid, callBack) {
    //console.log(userid);
    var param = {
      url: 'getAnswers?aid=' + aid,
      sCallBack: function (data) {
        //console.log(data);
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getAnswersAdd(name, aid, mid, callBack) {
    var param = {
      url: 'getAnswersAdd?name=' + name + '&aid=' + aid + '&mid=' + mid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  } //获取mid


  getMid(callBack) {
    var param = {
      url: 'getMid',
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { Ycwenda };